package com.example.gymmanagement.service;

import com.example.gymmanagement.Utils.Result;
import com.example.gymmanagement.domain.User;
import com.baomidou.mybatisplus.extension.service.IService;

/**
* @author 蜗牛菌
* @description 针对表【user】的数据库操作Service
* @createDate 2023-06-05 20:47:33
*/

public interface UserService extends IService<User> {

    //新增用户
    boolean insert(User user);

    //按id查询用户
    User selectById(Integer id);

    //按id删除用户
    boolean deleteById(Integer id);

    //更新用户
    boolean updateUser(User user);

    //查询所有用户
    Result selectList(Integer index, Integer size);

    Result select(Integer index, Integer size, User user);

    User findUser(long userId, String userpassword);

    Result selectCurrentUser(String token);
}
